package com.example.springstudy.controller;

import com.example.springstudy.base.Result;
import com.example.springstudy.service.JobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/job")
public class JobController {
    @Autowired
    public JobService jobService;

    @GetMapping("/listAll")
    public Result<?> listAll(){
        return Result.success(jobService.listAll());
    }

}
